﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTMenusSub.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTMenusSub" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
     <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-menumgr.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbMenuSub" runat="server" Text="Quản lý menu con " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>
                <td valign="middle">
                    <div class="add-edit-del">  
                            <asp:ImageButton ID="ImaTat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-unpublish.png" runat="server" 
                                width="32px" height="32px" class="imagboder" onclick="ImaTat_Click"  />                     
                            <br />
                            <asp:Label ID="lbTat" runat="server" Text="Tắt"></asp:Label>                       
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">   
                            <asp:ImageButton ID="ImgBat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-publish.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImgBat_Click"  />                     
                            <br />                                                 
                            <asp:Label ID="lbBat" runat="server" Text="Bật"></asp:Label>                       
                    </div>
                </td>                                             
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgEdit" ImageUrl="~/images/EHTgiaodien/icon-32-edit.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" onclick="ImgEdit_Click" 
                                />  <br />                                                                      
                            <asp:Label ID="lbEdit" runat="server" Text="Sửa"></asp:Label> 
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">                        
                            <asp:ImageButton ID="ImgAdd" ImageUrl="~/images/EHTgiaodien/icon-32-new.png" 
                                runat="server" width="32px" height="32px" class="imagboder" 
                                onclick="ImgAdd_Click" />
                            <br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                       
                    </div>
                </td>

                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

<asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
    <div style="padding-top:10px;">      
        <asp:Panel ID="pnSubmenu" runat="server">
             <telerik:RadTreeList ID="RadTreeList1" runat="server" 
        AutoGenerateColumns="false" ParentDataKeyNames="ParentID" AllowMultiItemSelection="true"
        AllowPaging="true" PageSize="20" DataKeyNames="MenuID" 
            onneeddatasource="RadTreeList1_NeedDataSource" Skin="Office2007" 
            onitemcommand="RadTreeList1_ItemCommand"             
            onpageindexchanged="RadTreeList1_PageIndexChanged" 
            onpagesizechanged="RadTreeList1_PageSizeChanged">
        <Columns>
            <telerik:TreeListSelectColumn HeaderStyle-Width="40px">
            </telerik:TreeListSelectColumn>
            <telerik:TreeListBoundColumn DataField="MenuNameVN" UniqueName="MenuNameVN" HeaderText="Tên menu" />                     
            <telerik:TreeListNumericColumn DataField="MenuLevel" UniqueName="MenuLevel" HeaderText="Menu Level" HeaderStyle-Width="100px">               
            </telerik:TreeListNumericColumn>                
            <telerik:TreeListBoundColumn DataField="ControlUrl" UniqueName="ControlUrl" HeaderText="Url" />            
            <telerik:TreeListBoundColumn DataField="TitleOrder" UniqueName="TitleOrder" HeaderText="Danh mục menu" /> 
            <telerik:TreeListImageColumn  HeaderText="Trạng thái" HeaderStyle-Width="70px" UniqueName="IconTrangThai" DataImageUrlFields="IconTrangThai"  ItemStyle-HorizontalAlign="Center">                               
            </telerik:TreeListImageColumn>
             <telerik:TreeListNumericColumn DataField="MenuID" UniqueName="MenuID"  HeaderText="ID" HeaderStyle-Width="40px">               
            </telerik:TreeListNumericColumn>                                                                         
        </Columns>
    </telerik:RadTreeList>
        </asp:Panel>

        <asp:Panel ID="pnSubmenuOther" runat="server">
             <telerik:RadTreeList ID="RadTreeList2" runat="server" 
        AutoGenerateColumns="false" ParentDataKeyNames="ParentID" AllowMultiItemSelection="true"
        AllowPaging="true" PageSize="20" DataKeyNames="MenuID" 
            onneeddatasource="RadTreeList2_NeedDataSource" Skin="Office2007" 
            onitemcommand="RadTreeList2_ItemCommand"             
            onpageindexchanged="RadTreeList2_PageIndexChanged" 
            onpagesizechanged="RadTreeList2_PageSizeChanged">
        <Columns>
            <telerik:TreeListSelectColumn HeaderStyle-Width="40px">
            </telerik:TreeListSelectColumn>          
            <telerik:TreeListBoundColumn DataField="MenuNameOther" UniqueName="MenuNameOther" HeaderText="Menu Name" />            
            <telerik:TreeListNumericColumn DataField="MenuLevel" UniqueName="MenuLevel" HeaderText="Menu Level" HeaderStyle-Width="100px">               
            </telerik:TreeListNumericColumn>                
            <telerik:TreeListBoundColumn DataField="ControlUrl" UniqueName="ControlUrl" HeaderText="Url" />            
            <telerik:TreeListBoundColumn DataField="TitleOrder" UniqueName="TitleOrder" HeaderText="Category menu" /> 
            <telerik:TreeListImageColumn  HeaderText="Status" HeaderStyle-Width="70px" UniqueName="IconTrangThai" DataImageUrlFields="IconTrangThai"  ItemStyle-HorizontalAlign="Center">                               
            </telerik:TreeListImageColumn>
             <telerik:TreeListNumericColumn DataField="MenuID" UniqueName="MenuID"  HeaderText="ID" HeaderStyle-Width="40px">               
            </telerik:TreeListNumericColumn>                                                                         
        </Columns>
    </telerik:RadTreeList>
        </asp:Panel>
    </div>

</asp:Content>
